<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"></meta>
	<title>修改密码</title>
	<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"></meta>
	<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache"></meta>
	<meta HTTP-EQUIV="Expires" CONTENT="0"></meta>
	<link rel="stylesheet" th:href="@{/static/layui/css/layui.css}" media="all"> </link>
	<link rel="stylesheet" th:href="@{/static/css/user.css}"  media="all" > </link>
</head>
<body class="childrenBody">
	<form class="layui-form changePwd" name="changePwd" id="changePwd">
		<div style="margin:0 0 15px 110px;color:#f00;">新密码必须两次输入一致才能提交</div>
		<div class="layui-form-item">
		    <label class="layui-form-label">用户名</label>
		    <div class="layui-input-block">
		    	<input type="text" th:value="${session.loginUserKey.user.username}" readonly="true" name="username" class="layui-input "></input>
				<input type="hidden" th:value="${session.loginUserKey.user.password}" readonly="true"  id="oldPwds" class="layui-input "></input>
		    </div>
		</div>
		<div class="layui-form-item">
		    <label class="layui-form-label">旧密码</label>
		    <div class="layui-input-block">
		    	<input type="password" value="" placeholder="请输入旧密码" lay-verify="required|oldPwd" class="layui-input pwd"></input>
		    </div>
		</div>
		<div class="layui-form-item">
		    <label class="layui-form-label">新密码</label>
		    <div class="layui-input-block">
		    	<input type="password" name="newPwd" placeholder="请输入新密码" lay-verify="required|newPwd" id="oldPwd" class="layui-input pwd"></input>
		    </div>
		</div>
		<div class="layui-form-item">
		    <label class="layui-form-label">确认密码</label>
		    <div class="layui-input-block">
		    	<input type="password"   placeholder="请确认密码" lay-verify="required|confirmPwd" class="layui-input pwd"></input>
		    </div>
		</div>
		<div class="layui-form-item">
		    <div class="layui-input-block">
		    	<button class="layui-btn" lay-submit="" lay-filter="changePwd">立即修改</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>
	<script type="text/javascript" th:src="@{/static/layui/layui.js}"></script>
	<script type="text/javascript" th:src="@{/static/js/address.js}"></script>
	<script type="text/javascript" th:src="@{/static/js/userinfo.js}"></script>
</body>
</html>